package cn.ctodb.divination.service.dto;


import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Lob;

/**
 * A DTO for the Bihua entity.
 */
public class BihuaDTO implements Serializable {

    private Long id;

    private Integer num;

    @Lob
    private String hanzi;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
    public String getHanzi() {
        return hanzi;
    }

    public void setHanzi(String hanzi) {
        this.hanzi = hanzi;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        BihuaDTO bihuaDTO = (BihuaDTO) o;

        if ( ! Objects.equals(id, bihuaDTO.id)) { return false; }

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "BihuaDTO{" +
            "id=" + id +
            ", num='" + num + "'" +
            ", hanzi='" + hanzi + "'" +
            '}';
    }
}
